import Vue from 'vue'
import Vuex from 'vuex'

// 引入子模块
import user from './user'
// 导入 vuex-persistedstate  永久存储token
import createPersistedState from 'vuex-persistedstate'
Vue.use(Vuex)

export default new Vuex.Store({
  // 安装插件
  plugins: [createPersistedState()],
  state: {},
  mutations: {},
  actions: {},
  modules: {
    user
  }
})
